<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>销售出库单头部</title>
    <%= stylesheet_link_tag "/stylesheets/print.css" %>
  </head>
  <body>
    <table width="700" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="6">
          <div align="center" style="font-size:18px">
            <%=SysParam.find_by_company_id(session[:company_id]).company_name%>
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="6">
          <div align="center" style="font-size:15px">
            <%if params[:sub_type] == '1'%>
              销售出库配送单
            <%else%>
              销售出库提货单
            <%end%>
          </div>
        </td>
      </tr>
      <tr>
        <td width="50">开单日期：</td>
        <td width="90"><%=@deliveryOrder.created_at.strftime("%Y-%m-%d") %></td>
        <td width="50">出库仓库：</td>
        <td width="80"><%=@deliveryOrder.warehouse.name %></td>
        <td width="50">出库编号：</td>
        <td width="133"><%=@deliveryOrder.order_number %></td>
      </tr>
      <tr>
        <td>销售部门：</td>
        <td><%=@saleOrder.sell_department.name %></td>
        <td>业务员： </td>
        <td><%=@saleOrder.sales.name %></td>
        <td>销售编号：</td>
        <td><%=@saleOrder.order_number %></td>
      </tr>
      <tr>
        <td>客户名称：</td>
        <td colspan="3"><%=@saleOrder.customer.name %></td>
        <td>销售策略：</td>
        <td><%=@saleOrder.sales_strategy.name %></td>
      </tr>
      <tr>
        <td>说明：</td>
        <td colspan="5">&nbsp;</td>
      </tr>
    </table>
  </body>
</html>